package com.xypw.models;


import com.et.ar.ActiveRecordBase;
import com.et.ar.annotations.Column;
import com.et.ar.annotations.Id;
import com.et.ar.annotations.Table;

@Table(name="tb_news")
public class News extends ActiveRecordBase{
	public final static int OTHER_TYPE = 0;
	public final static int NEWS_TYPE = 1;
	public final static int NOTICE_TYPE = 2;
	public final static int ASSIGNMENT_TYPE = 3;
	public final static int TRAIN_TYPE = 4;
	public final static int WORKPLAN_TYPE = 5;
	public final static int CENTRAFILES_TYPE = 6;
	public final static int POLICIES_TYPE = 7;

	public final static String[] TYPE_ARRY = new String[]{"其他","工作动态","通知","专项治理任务","市州培训动态","工作实施方案","中央文件","政策法规"};
	public final static String[] STATUS_ARRY = new String[]{"新建","已保存","已提交","已退回","管理员已保存","已发布"};
	@Id
	private int id;
	@Column
	private String title;
	@Column
	private String subTitle;
	@Column
	private String comeSource;
	@Column
	private String publishUserId;
	@Column
	private String publishUserName;
	@Column
	private String publishDate;
	@Column
	private String saveDate;
	@Column
	private int newsType;
	/**新闻类型名称*/
	@Column
	private String typeName;
	/**新闻类型排序编号*/
	@Column
	private int newsOrder;
	@Column
	private int statusFlag;
	@Column
	private int counter;
	@Column
	private String content;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getSubTitle() {
		return subTitle;
	}
	public void setSubTitle(String subTitle) {
		this.subTitle = subTitle;
	}
	public String getPublishUserName() {
		return publishUserName;
	}
	public void setPublishUserName(String publishUserName) {
		this.publishUserName = publishUserName;
	}
	
	public int getCounter() {
		return counter;
	}
	public void setCounter(int counter) {
		this.counter = counter;
	}
	public void setPublishUserId(String publishUserId) {
		this.publishUserId = publishUserId;
	}
	public String getPublishUserId() {
		return publishUserId;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getContent() {
		return content;
	}
	public void setPublishDate(String publishDate) {
		this.publishDate = publishDate;
	}
	public String getPublishDate() {
		return publishDate;
	}
	public void setStatusFlag(int statusFlag) {
		this.statusFlag = statusFlag;
	}
	public int getStatusFlag() {
		return statusFlag;
	}
	public void setComeSource(String comeSource) {
		this.comeSource = comeSource;
	}
	public String getComeSource() {
		return comeSource;
	}
	public void setSaveDate(String saveDate) {
		this.saveDate = saveDate;
	}
	public String getSaveDate() {
		return saveDate;
	}
	public void setNewsType(int newsType) {
		this.newsType = newsType;
	}
	public int getNewsType() {
		return newsType;
	}
	public String getTypeName() {
		return typeName;
	}
	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}
	public int getNewsOrder() {
		return newsOrder;
	}
	public void setNewsOrder(int newsOrder) {
		this.newsOrder = newsOrder;
	}

}
